﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>::欢迎您使用PiPiBugNet::</title>
    <link rel="stylesheet" type="text/css" href="resources/css/ext-all.css" />
    <link rel="stylesheet" type="text/css" href="Style/LoginStyle.css" />
    <script type="text/javascript" src="adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="ext-all.js"></script>
    <script type="text/javascript">
        Ext.onReady(function(){

        Ext.QuickTips.init();

        // turn on validation errors beside the field globally
        Ext.form.Field.prototype.msgTarget = 'side';

        var bd = Ext.getBody();
        
            bd.createChild();

            var simple = new Ext.FormPanel({
                labelWidth: 75, // label settings here cascade unless overridden
                url:'save-form.php',
                frame:true,
                title: '用户登录',
                bodyStyle:'padding:5px 5px 0',
                width: 350,
                defaults: {width: 180},
                defaultType: 'textfield',

                items: [{
                        fieldLabel: '用户名',
                        name: 'extTxtName',
                        allowBlank:false,
                        blankText:"请输入用户名."
                    },{
                        fieldLabel: '密&nbsp;&nbsp;&nbsp;码',
                        name: 'extTxtPass',
                        inputType:"password",
                        allowBlank:false,
                        blankText:"请输入密码."
                    }
                ],

                buttons: [{
                    text: '登录',
                      tooltip:"点此提交验证",
                      handler:function(){Ext.Msg.alert('提示消息框','测试Button组件：handler事件！');}//添加
                    },{
                    text: '取消'
                }],
                Field:
                [{
                    id:"fild",
                    fieldLabel:"标签名称"
                }]
            });

            simple.render(document.body);
        }); 
    </script>
    </head>
<body>
    <form id="form1" runat="server">
    <div class="ob">
    
    </div>
    </form>
</body>
</html>
